<!DOCTYPE html>
<html xmlns:fb="http://ogp.me/ns/fb#">
    <head>
        <meta charset="utf-8" />
        <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=2.0, user-scalable=yes" />

        <title>VideoGallery</title>
        <link rel="stylesheet" href="stylesheets/screen.css" media="Screen" type="text/css" />
        <link rel="stylesheet" href="stylesheets/mobile.css" media="handheld, only screen and (max-width: 480px), only screen and (max-device-width: 480px)" type="text/css" />

        <!--[if IEMobile]>
        <link rel="stylesheet" href="mobile.css" media="screen" type="text/css"  />
        <![endif]-->

        <!-- These are Open Graph tags.  They add meta data to your  -->
        <!-- site that facebook uses when your content is shared     -->
        <!-- over facebook.  You should fill these tags in with      -->
        <!-- your data.  To learn more about Open Graph, visit       -->
        <!-- 'https://developers.facebook.com/docs/opengraph/'       -->

        <meta property="og:title" content="Bdnews24" />          
        <meta property="og:type" content="article" />
        <meta property="og:url" content="http://apps.facebook.com/bdnews_twenty_four/bangla_videoGallery.php" />
        <meta property="og:image" content="http://apps.facebook.com/bdnews_twenty_four/logo.png" />
        <meta property="og:site_name" content="Bdnews24.com" /> 
        <meta property="og:description" content="video gallery of bdnews24.com" />
        <meta property="fb:app_id" content="315241705214029" />

        <script type="text/javascript" src="javascript/jquery-1.7.1.min.js"></script>
        <script type="text/javascript" src="javascript/myScript.js"></script>

    </head>

    <body>

        <div id="fb-root"></div>

        <div id="content">
            <div id="pageHeading">
                <div id="heading" align="center">
                    <a href="bangla_index.php"><img src="images/heading1.gif"/></a>
                </div>
                <div id="join" onclick="requestToFriends();">
                    <a href="#" class="inviteFriend">Invite Your Friends</a>
                </div>
                <div id="e_to_b">
                    <a href="index.php"><img src="images/english.gif"></a>
                </div>
            </div>
        </div>
        <div id="videoGallery">
            <?php
            $feed_url = "http://rss.bdnews24.com/rss/getfeed.php?ct=v&ln=bn";
            $content = file_get_contents($feed_url) . '</rss>';
            $xml_data = new SimpleXMLElement($content);

            $output = '<ul style="list-style:none">';
            foreach ($xml_data->content->item as $video) {

                $output .='<li>';
                $thumbnail = $video->thumb;
                $link = $video->link;
                $video_id = substr($link, 25, 11);

                $video_src = '<img src="' . $thumbnail . '"/>';
                $video_src = '<a href="bangla_viewVideo.php?id=' . $video_id . '"> <span class="vcontainer">
                        </span>' . $video_src . '</a>';

                $output .= $video_src . '<br/>';

                $output .='</li>';
            }
            $output .='</ul>';
            ?>

            <h2 class="label1">ভিডিও</h2>
            <?php echo $output; ?>

            <p class="clearfix"></p>
        </div>
        <!-- analytic data -->
        <script type="text/javascript">

            var _gaq = _gaq || [];
            _gaq.push(['_setAccount', 'UA-4785525-1']);
            _gaq.push(['_setDomainName', '.bdnews24.com']);
            _gaq.push(['_trackPageview']);
			
            (function() {
                var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
                ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
                var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
            })();
			
        </script>
    </body>
</html>